export const photoPre = 'https://djv3.oss-cn-hangzhou.aliyuncs.com/';
export const localSiteId = localStorage.getItem('siteId');

import Vue from 'vue';
Vue.filter('formatTime',function(d) {
    d = d.replace(/-/g, '/');
    let day = new Date(d).getDay();
    let text = "error";
    switch (day) {
        case 0:
            text = "周日";
            break;
        case 1:
            text = "周一";
            break;
        case 2:
            text = "周二";
            break;
        case 3:
            text = "周三";
            break;
        case 4:
            text = "周四";
            break;
        case 5:
            text = "周五";
            break;
        case 6:
            text = "周六";
            break;
    }
    return text;
})